package Homework;

import java.util.ArrayList;
import java.util.List;

// 泛型接口
public class ResponseVO<T> {


    // 返回码
    private Integer code;

    // 返回信息
    private String message;

    // 返回内容数据
    private T data;

//    private List<T> list= new ArrayList<>();


    // get/set/toString等方法...

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseVO{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
